
package com.market.web.action;

import org.springframework.beans.BeanUtils;

import com.market.bean.Msgboard;
import com.market.web.form.MsgBoardForm;

public class AdminMsgBBackAction extends BaseAction2
{
    public String execute() throws Exception
    {
        int id = (int)getLong("id");
        Msgboard mb = getMsgBoardService().findById(id);
        MsgBoardForm mbf = new MsgBoardForm();
        if (mb != null)
        {
            BeanUtils.copyProperties(mb, mbf);
        }
        mbf.setCurPage(getRequest().getParameter("page"));
        getRequest().setAttribute("msgBoardForm", mbf);
        return SUCCESS;
        //return new ActionForward("/adminMsgBSearch.do");
    }

}
